package au.com.ecaporali.module1.introexercises.fizzbuzz;

/**
 * Created by Enrico on 7/09/2014.
 */
public class FizzBuzz {

    public void fizzBuzz(int n){
        for(int i = 1; i <= n;i++){
            String s = "";

            if(i % 3 == 0) s += "Fizz";
            if(i % 5 == 0) s += "Buzz";
            if(s.equals("")) s = Integer.toString(i);

            System.out.println(s);
        }
    }
}
